package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/8/27 18:43
*/

// CGGameAUEverydayPlayGameTimesByDifferentUsers 云游戏AU每天区分不同用户的开始游戏次数表
type CGGameAUEverydayPlayGameTimesByDifferentUsers struct {
	ID          int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	UserID      int64          `json:"user_id" gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID"`
	Phone       string         `json:"phone" gorm:"column:phone;type:varchar(20);not null;default:'';comment:用户手机号"`
	PlayTimes   int64          `json:"play_times" gorm:"column:play_times;type:bigint;not null;default:0;comment:当天该用户的开始游戏次数"`
	TimeOfDaily time.Time      `json:"time_of_daily" gorm:"column:time_of_daily;type:datetime;comment:日报创建时间"`
	CreatedAt   time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt   time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt   gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUEverydayPlayGameTimesByDifferentUsers) TableName() string {
	return "cg_game_au_everyday_play_game_times_by_different_users"
}
